import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import app from './App.vue'
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(Mint)
import VueResource from 'vue-resource'
import router from './router.js'
Vue.use(VueResource)
Vue.http.options.root='http://jsonplaceholder.typicode.com/'
Vue.http.options.emulateJSON=true
import moment from 'moment'
//定义全局过滤器
Vue.filter('dateFormat',function(dataStr,pattern="YYYY-MM-DD HH:mm:ss"){
    return moment(dataStr).format(pattern)
})
var vm=new Vue({
    el:'#app',
    render(h) {
        return h(app)
    },
    router
})
